package com.dhcc.DRGsHosp.core.domain;

import java.io.Serializable;

import javax.persistence.AttributeOverride;
import javax.persistence.AttributeOverrides;
import javax.persistence.Column;
import javax.persistence.Embeddable;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

import org.openkoala.koala.commons.domain.KoalaLegacyEntity;

/**
 * @title		:PatientDrg.java
 * @description	:
 * @author		:lileizheng
 * @date		:2015年4月2日
 * @version     :1.0
 * @copyright   :DHCC 2013-2014 
 */
@Entity
@Embeddable
@AttributeOverrides({
   @AttributeOverride(name = "parid", column = @Column(name = "PARID")),
   @AttributeOverride(name = "ver_region", column = @Column(name = "VER_REGION")) 
 })
@Table (name = "T_PATIENTDRG", schema = "DRGs")
public class PatientDrg extends KoalaLegacyEntity {

private static final long serialVersionUID = -2700241427681303048L;
//ParID
@Id
private PatientDrgPrimary pkId;

//ParDRG代码
@Column(name = "PARDRG_CODE")
private String pardrgCode;

//MDC
@Column(name = "MDC")
private String mdc;

//版本
@Column(name = "VER_CODE" , nullable = false)
private String verCode;

//未入组原因
@Column(name = "NOTIN_CODE")
private String notinCode;

@Column(name = "LOG_INFO")
private String logInfo;

@Column(name = "NOTIN_REASON")
private String notInReason;

@Override
public Serializable getId() {
	// TODO Auto-generated method stub
	return pkId;
}
@Override
public String[] businessKeys() {
	// TODO Auto-generated method stub
	return null;
}


public String getPardrgCode() {
	return pardrgCode;
}

public void setPardrgCode(String pardrgCode) {
	this.pardrgCode = pardrgCode;
}

public String getMdc() {
	return mdc;
}

public void setMdc(String mdc) {
	this.mdc = mdc;
}

public String getVerCode() {
	return verCode;
}

public void setVerCode(String verCode) {
	this.verCode = verCode;
}

public String getNotinCode() {
	return notinCode;
}

public void setNotinCode(String notinCode) {
	this.notinCode = notinCode;
}

public String getLogInfo() {
	return logInfo;
}

public void setLogInfo(String logInfo) {
	this.logInfo = logInfo;
}

public String getNotInReason() {
	return notInReason;
}

public PatientDrgPrimary getPkId() {
	return pkId;
}
public void setPkId(PatientDrgPrimary pkId) {
	this.pkId = pkId;
}
public void setNotInReason(String notInReason) {
	this.notInReason = notInReason;
}
public PatientDrg(PatientDrgPrimary pkId) {
	super();
	this.pkId = pkId;
}
public PatientDrg() {
	super();
}

}
